<?php namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Area extends Model
{

    protected $fillable = ['name', 'p_id', 'code', 'level'];

    public function p_area()
    {
        return $this->belongsTo('App\Models\Area', 'p_id', 'id');
    }

}